import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

import Login from '@/components/Login'
import Home from '@/components/Home'
import WelCome from '@/components/WelCome'
import ImportStudents from '@/components/ImportStudents'
import EditStudents from '@/components/EditStudents'
import CheckInfo from '@/components/CheckInfo'
import CheckInfoDetails from '@/components/CheckInfoDetails'
import AlertValue from '@/components/AlertValue'
import CheckStatus from '@/components/CheckStatus'
import CheckInfoSummary from '@/components/CheckInfoSummary'

const routes = [
  {
    path:"/",
    name:"Login",
    component:Login
  },
  {
    path:"/Login",
    name:"Login",
    component:Login
  },
  {
    path:"/Home",
    name:"Home",
    component:Home,
    children:[
      {
        path:"/",
        name:"WelCome",
        component:WelCome
      },
      {
        path:"/import",
        name:"Import",
        component:ImportStudents
      },
      {
        path:"/editstudents",
        name:"EditStudents",
        component:EditStudents
      },
      {
        path:"/checkin",
        name:"CheckInfo",
        component:CheckInfo
      },
      {
        path:"/checkinfodetails",
        name:"CheckInfoDetails",
        component:CheckInfoDetails
      },
      {
        path:"/alertvalue",
        name:"AlertValue",
        component:AlertValue
      },
      {
        path:"/checkstatus",
        name:"CheckStatus",
        component:CheckStatus
      },
      {
        path:"/checkinsummary",
        name:"CheckInfoSummary",
        component:CheckInfoSummary
      }

    ]
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
